<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/js/axios.min.js"></script>
    <script src="/js/util.js"></script>
    <script>
        window.onload = function () {
            init();
        }
        function init(){
            axios.get("/user/getOrderAll",{
                params: {}
            }).then(resp=>{
                var info = resp.data;
                var dataStr = "";
                info.forEach(n => {
                    dataStr += `<tr>
                <td>${n.orderId}</td>
                <td>${n.movieName}</td>
                <td>${n.seriesNum}</td>
                <td>${n.cinema}</td>
                <td>${n.row}</td>
                <td>${n.seat}</td>`;
                });
                $("data").innerHTML = dataStr;
            })
        }
    </script>
</head>
<body>
<table border="1" cellspacing="0" width="80%">
    <thead>
    <tr>
        <th>编号</th>
        <th>电影名称</th>
        <th>场次</th>
        <th>影院</th>
        <th>排号</th>
        <th>座号</th>
    </tr>
    </thead>
    <tbody id="data"></tbody>
</table>
</body>
</html>